<?php

/**
 * Internationalized widget for displaying a date widget with year starting
 * in 1950
 * 
 * @author Maximilian Lenkeit <dev@lenki.com>
 *
 */
class WidgetFormI18NDatePastPeriod extends sfWidgetFormI18nDate
{
	/**
	 * Set range to start in the past
	 * 
	 * @see sfWidgetFormI18nDate::configure()
     * @author Maximilian Lenkeit <dev@lenki.com>
	 */
	protected function configure($options = array(), $attributes = array()) {
		parent::configure($options, $attributes);
		$years = range(1950, date("Y") + 3);
		$years = array_reverse($years);
		$this->addOption('years', array_combine($years, $years));
	}
}
?>